package cn.ricecode.restructure.design.observer;

public class ObserverMain {
    public static void main(String[] args) {
        Subject subject = new Subject();

        LogObserver logObserver = new LogObserver();
        subject.addObserver(logObserver);

        subject.setState(10);
    }
}
